package com.broada.apm.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 资源实体类<br/>
 * 在APM中我们把以下一些对象成为资源<br/>
 * <li>一个节点 独立的IP</li> <li>一个服务节点 ip+port</li> <li>一个业务系统</li> <li>一个URI
 * url，sql， mq的队列</li> <br/>
 * 每个资源用一个独立的 id作为标识
 * 
 * @author sam Create By 2014年11月19日 下午1:41:47
 */
public class Resource extends BaseResource implements Serializable {
	/**
	 * <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;
	private String uri;
	private String belongTo;
	private Date createdAt;
	private String applicationId;
	private float apdex_t;
	private String soapFunction;
	
	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	
	public String getBelongTo() {
		return belongTo;
	}

	public void setBelongTo(String belongTo) {
		this.belongTo = belongTo;
	}

	public String getApplicationId() {
		return applicationId;
	}

	public void setApplicationId(String applicationId) {
		this.applicationId = applicationId;
	}

	public float getApdex_t() {
		return apdex_t;
	}

	public void setApdex_t(float apdex_t) {
		this.apdex_t = apdex_t;
	}

	public String getSoapFunction() {
		return soapFunction;
	}

	public void setSoapFunction(String soapFunction) {
		this.soapFunction = soapFunction;
	}

	public String toDebugString() {
		return "Resource [id=" + getId() + ", uri=" + uri + "]";
	}
}
